import bsinRequest from '../utils/bsinRequest';

// 获取结构树
export const getOrgTree = (params: object) => {
  return bsinRequest('/getOrgTree', {
    serviceName: 'OrgService',
    methodName: 'getOrgTree',
    bizParams: {
      ...params,
    },
  });
};

// 获取用户list
export const getUser = (params: object) => {
  return bsinRequest('/getUser', {
    serviceName: 'UserService',
    methodName: 'getUserList',
    bizParams: {
      ...params,
    },
  });
};
